import React from 'react'
import Style from './40x.module.scss'
import { Button } from 'antd'
import { useRouter } from 'next/router'

function PageNotFound() {

  const router = useRouter()

  const backLogin = () => {
    router.push('/login')
  }

  return (
    <div className={Style.error_wapper}>
      <div className='img_401'></div>
      <div className='message_401'>
        登陆已失效，请重新登录！
      </div>
      <Button type='primary' onClick={backLogin}>
        重新登录
      </Button>
    </div>
  )
}

export default PageNotFound